﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="NewsListControl.ascx.cs" Inherits="Electure.Controls.NewsList" %>
<asp:Repeater ID="repNews" OnItemDataBound="repNews_ItemDataBound" runat="server">
    <ItemTemplate>
        <div class="row" style="margin: 10px 0">
            <div class="col-sm-12">
                <div class="thumbnail">
                    <asp:Image ID="imagePreview" style="max-height: 200px" runat="server" />
                    <div class="caption">                    
                        <h3><%# Eval("Name") %></h3>
                            <small>Додано: <%# Eval("CreateDate", "{0:dd.MM.yyyy}")%></small>
                        <p><%# Eval("Description") %></p>
                    </div>
                </div>
            </div>
        </div>
    </ItemTemplate>
</asp:Repeater>
